/*
	       File: frmArchiveDirectory.cs
	Create Date: 2007-09-21
	    Version:

	Description:


	 Change log:


*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FPInstaller
{
    public partial class frmArchiveDirectory : Form
    {
        #region Private member fields
        #endregion

        #region Constructors and cleanup methods
        public frmArchiveDirectory()
        {
            InitializeComponent();
        }
        #endregion

        #region Private implementation methods
        #endregion

        #region Class properties
        public string ArchiveDirectory
        {
            get { return txtArchiveFolder.Text; }
            set { txtArchiveFolder.Text = value; }
        }
        #endregion

        #region Events handlers
        private void btnSelect_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();
            fbd.SelectedPath = txtArchiveFolder.Text;

            if (DialogResult.OK == fbd.ShowDialog())
            {
                txtArchiveFolder.Text = fbd.SelectedPath;
            }

        }
        #endregion

        private void btnOK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

        #region Public interface
        #endregion
    }
}